//
//  LZRefreshHeader.m
//  二期-百思不得姐
//
//  Created by 郝庆 on 16/5/23.
//  Copyright © 2016年 haoqing. All rights reserved.
//

#import "LZRefreshHeader.h"

@interface LZRefreshHeader ()
/** logo */
@property (nonatomic, weak) UIImageView *logo;
@end

@implementation LZRefreshHeader

- (void)prepare
{
    [super prepare];
    // 自动切换透明度
    self.automaticallyChangeAlpha = YES;
    
    self.lastUpdatedTimeLabel.textColor = [UIColor orangeColor];
    self.stateLabel.textColor = [UIColor redColor];
    [self setTitle:@"下拉刷新" forState:MJRefreshStateIdle];
    [self setTitle:@"松开立即更新" forState:MJRefreshStatePulling];
    [self setTitle:@"加载中..." forState:MJRefreshStateRefreshing];
    
    //    self.lastUpdatedTimeLabel.hidden = YES;
    //    self.stateLabel.hidden = YES;
//    UIImageView *logo = [[UIImageView alloc] init];
//    logo.image = [UIImage imageNamed:@"bd_logo1_31bdc765"];
//    [self addSubview:logo];
//    self.logo = logo;
}

/**
 *  摆放子控件
 */
- (void)placeSubviews
{
    [super placeSubviews];
    
    self.logo.lz_width = self.lz_width;
    self.logo.lz_height = 50;
    self.logo.lz_x = 0;
    self.logo.lz_y = - 50;
}

@end
